﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using App.BaseObject;
using App.Configuration.Dto;

namespace App.Configuration
{
    public interface IDictionaryAppService : IApplicationService
    {
				/// <summary>
        /// 批量保存
        /// </summary>
        /// <param name="bulks"></param>
        /// <returns></returns>
        Task SaveDictionarys(BulkDto<DictionaryDto> dtos);
		
		/// <summary>
        /// 异步获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Dictionary> GetDictionaryAsync(int id);

        /// <summary>
        /// 获取字典
        /// </summary>
        /// <param name="key"></param>
        /// <param name="index"></param>
        /// <returns></returns>
        Task<Dictionary<string,int>> GetDictionaryText(string key);

        /// <summary>
        /// 获取所有字典
        /// </summary>
        /// <returns></returns>
        Task<List<Dictionary>> GetAll();
    }
}
